package com.tron.dobest.dynamicdatasource;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 描述：从配置文件中读取所有数据源的配置信息
 * 此方式
 *
 * @author TRON
 * @since 2020-04-20
 */
@Data
@ConfigurationProperties(DynamicDataSourceProperties.PREFIX)
public class DynamicDataSourceProperties {
    public static final String PREFIX = "spring";
    private List<DataSourceProperties> dynamicDataSource;
}
